﻿using System;
using System.Collections.Generic;
using System.Data.Entity.Migrations;
using System.Linq;
using System.Text;

namespace SelfMadeMillionaire.DAL.Migrations
{
    public class AddColumnSmmUnsubscribedToSubscribers : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Subscribers", "SmmUnsubscribed", c => c.Boolean(false, false));

            Sql("UPDATE dbo.Subscribers SET SmmUnsubscribed = 0 ");
        }

        public override void Down()
        {
            DropColumn("dbo.Subscribers", "SmmUnsubscribed");
        }
    }
}
